package com.we.es.mock;

import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

import com.we.es.entity.EsIndexEntity;
import com.we.es.support.annotation.IndexField;

@Data
@EqualsAndHashCode(callSuper = false)
public class BookEntity extends EsIndexEntity {

	/**
	* 丛书名
	**/
	private String name;

	/**
	 * 作者
	 **/
	@IndexField(highLight = false)
	private String author;

	/**标题*/
	@IndexField(boost = 1.5f, highLight = true)
	private String title;

	/**关键字*/
	@IndexField(boost = 1.3f, highLight = true)
	private String keywords;

	/**摘要*/
	@IndexField(boost = 1.0f, highLight = true)
	private String abstracts;

	/**
	 * ISBN
	 **/
	@IndexField
	private String isbn;

	/**url地址*/
	@IndexField(index = false)
	private String linkUrl;

	//页数
	private int pages;

	//字数
	private long characterCount;

	//是否卖完
	private boolean isSellout;

	//价格
	private double price;

	@IndexField
	/**创建时间*/
	private Date createTime;

}